<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>GadgetType</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">GadgetType()</font></b></p>
<p><b>语法</b></p><blockquote>

Result = <font color="#006666"><b>GadgetType</b></font>(#Gadget)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Returns the type of gadget that is represented by the specified gadget number. It can be useful 
to write generic functions that work with more than one type of gadget. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Gadget</i></td>
<td width="90%"> 
 
The gadget to use. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>



Returns one of the following values: 
 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_GadgetType_Button</font>        : <a href="buttongadget.html">ButtonGadget()</a>
  <font color="#924B72">#PB_GadgetType_ButtonImage</font>   : <a href="buttonimagegadget.html">ButtonImageGadget()</a>
  <font color="#924B72">#PB_GadgetType_Calendar</font>      : <a href="calendargadget.html">CalendarGadget()</a>
  <font color="#924B72">#PB_GadgetType_Canvas</font>        : <a href="canvasgadget.html">CanvasGadget()</a>
  <font color="#924B72">#PB_GadgetType_CheckBox</font>      : <a href="checkboxgadget.html">CheckBoxGadget()</a>
  <font color="#924B72">#PB_GadgetType_ComboBox</font>      : <a href="comboboxgadget.html">ComboBoxGadget()</a>
  <font color="#924B72">#PB_GadgetType_Container</font>     : <a href="containergadget.html">ContainerGadget()</a>
  <font color="#924B72">#PB_GadgetType_Date</font>          : <a href="dategadget.html">DateGadget()</a>
  <font color="#924B72">#PB_GadgetType_Editor</font>        : <a href="editorgadget.html">EditorGadget()</a>
  <font color="#924B72">#PB_GadgetType_ExplorerCombo</font> : <a href="explorercombogadget.html">ExplorerComboGadget()</a>
  <font color="#924B72">#PB_GadgetType_ExplorerList</font>  : <a href="explorerlistgadget.html">ExplorerListGadget()</a>
  <font color="#924B72">#PB_GadgetType_ExplorerTree</font>  : <a href="explorertreegadget.html">ExplorerTreeGadget()</a>
  <font color="#924B72">#PB_GadgetType_Frame</font>         : <a href="framegadget.html">FrameGadget()</a>
  <font color="#924B72">#PB_GadgetType_HyperLink</font>     : <a href="hyperlinkgadget.html">HyperLinkGadget()</a>
  <font color="#924B72">#PB_GadgetType_Image</font>         : <a href="imagegadget.html">ImageGadget()</a>
  <font color="#924B72">#PB_GadgetType_IPAddress</font>     : <a href="ipaddressgadget.html">IPAddressGadget()</a>
  <font color="#924B72">#PB_GadgetType_ListIcon</font>      : <a href="listicongadget.html">ListIconGadget()</a>
  <font color="#924B72">#PB_GadgetType_ListView</font>      : <a href="listviewgadget.html">ListViewGadget()</a>
  <font color="#924B72">#PB_GadgetType_MDI</font>           : <a href="mdigadget.html">MDIGadget()</a>
  <font color="#924B72">#PB_GadgetType_Option</font>        : <a href="optiongadget.html">OptionGadget()</a>
  <font color="#924B72">#PB_GadgetType_Panel</font>         : <a href="panelgadget.html">PanelGadget()</a>
  <font color="#924B72">#PB_GadgetType_ProgressBar</font>   : <a href="progressbargadget.html">ProgressBarGadget()</a>
  <font color="#924B72">#PB_GadgetType_Scintilla</font>     : <a href="../scintilla/scintillagadget.html">ScintillaGadget()</a>
  <font color="#924B72">#PB_GadgetType_ScrollArea</font>    : <a href="scrollareagadget.html">ScrollAreaGadget()</a>
  <font color="#924B72">#PB_GadgetType_ScrollBar</font>     : <a href="scrollbargadget.html">ScrollBarGadget()</a>
  <font color="#924B72">#PB_GadgetType_Shortcut</font>      : <a href="shortcutgadget.html">ShortcutGadget()</a>
  <font color="#924B72">#PB_GadgetType_Spin</font>          : <a href="spingadget.html">SpinGadget()</a>
  <font color="#924B72">#PB_GadgetType_Splitter</font>      : <a href="splittergadget.html">SplitterGadget()</a>
  <font color="#924B72">#PB_GadgetType_String</font>        : <a href="stringgadget.html">StringGadget()</a>
  <font color="#924B72">#PB_GadgetType_Text</font>          : <a href="textgadget.html">TextGadget()</a>
  <font color="#924B72">#PB_GadgetType_TrackBar</font>      : <a href="trackbargadget.html">TrackBarGadget()</a>
  <font color="#924B72">#PB_GadgetType_Tree</font>          : <a href="treegadget.html">TreeGadget()</a>
  <font color="#924B72">#PB_GadgetType_Web</font>           : <a href="webgadget.html">WebGadget()</a>
  <font color="#924B72">#PB_GadgetType_Unknown</font>       : The type is unknown. Most likely it is not a PB gadget at all.
</font></pre>

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=gadgettooltip.html>GadgetToolTip()</a> - <a href=index.html>Gadget Index</a> - <a href=gadgetwidth.html>GadgetWidth()</a> -&gt;



</body></html>